﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="../js/jquery-1.8.2.js"></script>
  </head>
  <body>
	
	<img src="../images/zgl.jpg"/>
	
	<script type="text/javascript">
	
		//获取图片的坐标
		//var offset = $("img").offset();
		//var x = offset.left;
		//var y = offset.top;
		//alert(x+":"+y);
		
		//设置图片的坐标
		//$("img").offset({
		//	top:100,
		//	left:200
		//});
		
		//获取图片的宽高
		//var w = $("img").width();
		//var h = $("img").height();
		//alert(w+":"+h);
		
		//设置图片的宽高
		$("img").width(500);
		$("img").height(600);
		$("img").offset({
		   top:200,
            left:300
        });
		
	</script>
  
  </body>
</html>



